/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.demo.beanvalidation;

/*
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
*/

/**
 * @author: vacoor
 */
public class Validators {
    /*
    Validator validator;

    public <T> void validate(T object, Class<?>... groups) {
        Set<ConstraintViolation<T>> cvs = validator.validate(object, groups);
    }

    public <T> void validateProperty(T object, String propertyName, Class<?>... groups) {
        validator.validateProperty(object, propertyName, groups);

    }

    public <T> void validateValue(Class<T> beanType, String propertyName, Object value, Class<?>... groups) {
        validator.validateValue(beanType, propertyName, value, groups);
    }

    public static void main(String[] args) {
        ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
        Validator validator = factory.getValidator();
        Validators validators = new Validators();
        validators.validator = validator;
    }
    */
}
